package com.atming.zuul.service;

import com.atming.zuul.fallback.ProjectServiceFallbackFactory;
import com.atming.zuul.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "product-service",fallback = ProjectServiceFallbackFactory.class)
public interface ProductService {

    @GetMapping("/product/{id}")
    public Product selectProductById(@PathVariable("id") Long id);

}
